import http from "../utils/http";

const getApplicationList = () => http.get("api/application");
const addApplication = (params) => http.post("api/application", params)
const readApplication = (id) => http.get("api/application/" + id)
const updateApplication = (params, id) => http.put("api/application/" + id, params)
const passApplication = (id) => http.patch("api/application/" + id)
const rejectApplication = (id, params) => http.patch("api/application/" + id, params)
export {
    getApplicationList,
    addApplication,
    readApplication,
    updateApplication,
    passApplication,
    rejectApplication
};